package com.geekstudy.week9.service;

import com.geekstudy.api.UserApi;
import com.geekstudy.entity.User;
import org.apache.dubbo.config.annotation.DubboService;

@DubboService(version = "1.0.0")
public class UserService implements UserApi {


    @Override
    public User findById(int id) {
        String name = "User2021";
        User user = new User(id, name);
        return user;
    }


}
